package com.example.victory.swagger.model;

import java.util.Objects;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import org.springframework.validation.annotation.Validated;
import javax.validation.Valid;

/**
 * ApiResponseCustomerOverAllTradeOverviewDataCommissionContribution
 */
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-04-26T10:50:39.083+08:00")

public class ApiResponseCustomerOverAllTradeOverviewDataCommissionContribution   {
  @JsonProperty("month")
  private String month = null;

  @JsonProperty("commission")
  private String commission = null;

  @JsonProperty("nameValue")
  @Valid
  private List<ApiResponseCustomerOverAllTradeOverviewDataNameValue> nameValue = null;

  public ApiResponseCustomerOverAllTradeOverviewDataCommissionContribution month(String month) {
    this.month = month;
    return this;
  }

  /**
   * 月份
   * @return month
  **/
  @ApiModelProperty(value = "月份")


  public String getMonth() {
    return month;
  }

  public void setMonth(String month) {
    this.month = month;
  }

  public ApiResponseCustomerOverAllTradeOverviewDataCommissionContribution commission(String commission) {
    this.commission = commission;
    return this;
  }

  /**
   * 佣金
   * @return commission
  **/
  @ApiModelProperty(value = "佣金")


  public String getCommission() {
    return commission;
  }

  public void setCommission(String commission) {
    this.commission = commission;
  }

  public ApiResponseCustomerOverAllTradeOverviewDataCommissionContribution nameValue(List<ApiResponseCustomerOverAllTradeOverviewDataNameValue> nameValue) {
    this.nameValue = nameValue;
    return this;
  }

  public ApiResponseCustomerOverAllTradeOverviewDataCommissionContribution addNameValueItem(ApiResponseCustomerOverAllTradeOverviewDataNameValue nameValueItem) {
    if (this.nameValue == null) {
      this.nameValue = new ArrayList<ApiResponseCustomerOverAllTradeOverviewDataNameValue>();
    }
    this.nameValue.add(nameValueItem);
    return this;
  }

  /**
   * Get nameValue
   * @return nameValue
  **/
  @ApiModelProperty(value = "")

  @Valid

  public List<ApiResponseCustomerOverAllTradeOverviewDataNameValue> getNameValue() {
    return nameValue;
  }

  public void setNameValue(List<ApiResponseCustomerOverAllTradeOverviewDataNameValue> nameValue) {
    this.nameValue = nameValue;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ApiResponseCustomerOverAllTradeOverviewDataCommissionContribution apiResponseCustomerOverAllTradeOverviewDataCommissionContribution = (ApiResponseCustomerOverAllTradeOverviewDataCommissionContribution) o;
    return Objects.equals(this.month, apiResponseCustomerOverAllTradeOverviewDataCommissionContribution.month) &&
        Objects.equals(this.commission, apiResponseCustomerOverAllTradeOverviewDataCommissionContribution.commission) &&
        Objects.equals(this.nameValue, apiResponseCustomerOverAllTradeOverviewDataCommissionContribution.nameValue);
  }

  @Override
  public int hashCode() {
    return Objects.hash(month, commission, nameValue);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ApiResponseCustomerOverAllTradeOverviewDataCommissionContribution {\n");
    
    sb.append("    month: ").append(toIndentedString(month)).append("\n");
    sb.append("    commission: ").append(toIndentedString(commission)).append("\n");
    sb.append("    nameValue: ").append(toIndentedString(nameValue)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

